title: How to patch a function imported from another module
body: <p>Not able to patch the function.</p>
  
  <p>I am trying to patch a function from another module in my test function. But I am not able to do that.</p>
  
  <p>response.py</p>
  
  <pre><code>import boto3
  lambda = boto3.client('lambda')
  
  def response(event,context):
        s = boto3.client('s')
  
  
  
  </code></pre>
  
  <p>test_response.py</p>
  
  <pre><code>class lambda_handler(unittest.Testcae):
        @patch('response.boto3')
        test_handler():
         #doing the necessary assertions.
  </code></pre>
  
  <p>But the above mentioned one gives me the following error</p>
  
  <pre><code>botocore.exceptions.NoRegionError: You must specify a region.
  
  </code></pre>
  
  <p>The error is shown for the <code>boto3.client</code> declared outside the response function.
  Please help me in resolving this issue.</p>