code: def logical_and(a, b):
      """A version of tf.logical_and that eagerly evaluates if possible."""
      a_value = get_static_value(a)
      if a_value is not None:
          if np.isscalar(a_value):
              if a_value:
                  return _maybe_static(b)
              else:
                  return a_value
          else:
              return a_value & _maybe_static(b)
      else:
          return a & _maybe_static(b)
  
imports: import inspect
  import numbers
  import os
  import re
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import flexible_dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.ops.numpy_ops import np_dtypes
  from tensorflow.python.types import core
  from tensorflow.python.util import nest
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 38 for calling a global function with example usage: logical_and(a, b) and returns: unknown, unknown, _maybe_static, a_value